﻿using AdminFrame.Enum;
using System;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;

namespace AdminFrame.Domain.Parameters
{
    public class Parameter : FullAuditedAggregateRoot<Guid>, IMultiTenant
    {
        public Guid? TenantId { get; set; } // 添加多租户支持
        public string Name { get; set; }
        public string Code { get; set; }
        public ParameterTypeEnum Type { get; set; }
        public string Description { get; set; }
        public IsActiveEnum IsActive { get; set; }

        protected Parameter() { }

        public Parameter(
            Guid id,
            string name,
            string code,
            ParameterTypeEnum type,
            string description = null,
            IsActiveEnum isActive = IsActiveEnum.Yes)
        {
            Id = id;
            Name = name;
            Code = code;
            Type = type;
            Description = description;
            IsActive = isActive;
        }
    }
}